package cn.dxl.aliyunoss;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Import;
import springfox.bean.validators.configuration.BeanValidatorPluginsConfiguration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableSwagger2   //swaggerAPI
@EnableEurekaClient //EurekaClient 客户端
@EnableDiscoveryClient//让注册中心能够发现到该服务
@EnableKnife4j
@Import(BeanValidatorPluginsConfiguration.class)
public class AliyunOssApplicatuion {


    public static void main(String[] args) {

        SpringApplication.run(AliyunOssApplicatuion.class);
    }
}
